#include <iostream>
#include <memory>


#include "TcpServer.hpp"
#include "Dict.hpp"

using namespace std;

int main()
{
    unique_ptr<Dict> dict=make_unique<Dict>();

    unique_ptr<TcpServer> tsr=make_unique<TcpServer>(
        [&dict](const std::string& word){
           return dict->Translate(word);
        }
    );
    tsr->Init();
    tsr->Run();
    return 0;
}